package com.jie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jie.entity.Role;
import com.jie.mapper.RoleMapper;
import com.jie.service.RoleService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zwq
 * @since 2022-01-04
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    /**
     * TODO
     * 根据id删除角色
     * @param id
     * @return
     */
    @Override
    public boolean delectById(int id) {
        //删除角色与用户信息的关联

        //删除角色与菜单的关联

        //TODO 删除角色与接口资源

        return true;
    }

    @Override
    public boolean updateRole(Role role) {

        return false;
    }
}
